package com.ljx.rbac.controller;

import com.ljx.rbac.annotation.ApiPermission;
import com.ljx.rbac.common.Constant;
import org.springframework.web.bind.annotation.*;

/**
 * @Author: LiJunXi
 * @Description:
 * @Date: 2024-10-01  19:13
 */
@RestController
@RequestMapping("/test")
public class TestController {

    @ApiPermission(permissions = {Constant.PERMISSION_A})
    @GetMapping("/1")
    public void test1(){
        System.out.println("测试");
    }

    @ApiPermission(permissions = {Constant.PERMISSION_A, Constant.PERMISSION_C})
    @GetMapping("/2")
    public void test2(){
        System.out.println("测试");
    }

    @ApiPermission(permissions = {Constant.PERMISSION_A, Constant.PERMISSION_C, Constant.PERMISSION_D})
    @GetMapping("/3")
    public void test3(){
        System.out.println("测试");
    }



}
